package com.nuc.bigdata.orm.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.nuc.bigdata.orm.entity.PhotoNewsComments;
import org.apache.ibatis.annotations.Param;

import java.util.ArrayList;

/**
 * 图片资讯评论Mapper
 * @author JackLuo
 * @date 2019/11/27
 */
public interface PhotoNewsCommentsMapper extends BaseMapper<PhotoNewsComments> {
    /**
     * 通过图片资讯唯一标识获取图片评论
     * @param pnId 图片资讯唯一标识
     * @param offset limit起始偏移位置
     * @param length 截取长度
     * @return 图片资讯评论的ArrayList
     */
    ArrayList<PhotoNewsComments> listByPnId(@Param("pnId")String pnId,
                                            @Param("offset")Long offset,
                                            @Param("length")Long length);
}
